package com.woniu.service;


import com.github.pagehelper.PageInfo;
import com.woniu.entity.FlowerOrder;
import com.woniu.vo.OrderVoCZT;

import java.math.BigDecimal;

public interface FlowerOrderService {
    Long insertFlowerOrderFromCart(int accountId, int[] cartIds);

    Long insertFlowerOrderFromFlowerInfo(int accountId, int buyCount, int flowerId, BigDecimal flowerPrice);

    OrderVoCZT selectOrderByOrderId(String orderId);

    int updateAddressIdByOrderId(String orderId, int addressId);

    Integer updateOrderByOrderId(FlowerOrder order);

    PageInfo<OrderVoCZT> selectAllOrderByAccountId(int accountId,
                                                   String orderId,
                                                   byte isComment,
                                                   String startTime,
                                                   String endTime,
                                                   int status,
                                                   int pageNum,
                                                   int pageSize);

    int deleteOrderByOrderId(String orderId);

}
